import numpy
from mayavi.mlab import *


"""Test surf on regularly spaced co-ordinates like MayaVi."""
def f(x, y):
    sin, cos = numpy.sin, numpy.cos
    return sin(x+y) + sin(2*x - y) + cos(3*x+4*y)

x, y = numpy.mgrid[-7.:7.05:0.1, -5.:5.05:0.05]
s = surf(x, y, f)
#cs = contour_surf(x, y, f, contour_z=0)
#cs.show()
s.show()
